package cn.wolfcode.service;

import cn.wolfcode.domain.Department;
import cn.wolfcode.qo.QueryObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService extends IService<Department> {

    void delete(Long id);//删除

    void insert(Department department);//增加

    Department get(Long id);//查一个

    List<Department> listAll();//查所有

    void update(Department department);//修改

    //分页查询
    IPage<Department> query(QueryObject qo);
}
